package com.ktjiaoyu.server.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false) //@Data时默认@equalsandhashcode的状态为callsuper=false
@Accessors(chain = true) //开启链式编程
@ApiModel(value = "adminLogin对象", description = "")
public class AdminLoginParam {
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @ApiModelProperty(value = "验证码", required = true)
    private String code;

    public static void main(String[] args) {
        AdminLoginParam admin = new AdminLoginParam();
        // 下面这种代码就是因为使用@Accessors(chain = true) 注解开启了链式编程, 否则会报错
        admin.setUsername("xiaoming").setPassword("123456");
    }
}